/*
 * @LastEditors: zhouyaxue
 * @Date: 2022-09-05 09:58:13
 * @LastEditTime: 2022-12-15 15:24:17
 */
import { createStore } from 'vuex';
import home from './modules/home'
import api from './api';


const store = createStore({
  state: {
    isFirstPage: true,
    homeBannerList: [],
    infor: null, //网站信息
    outLink: [] // 外链
  },
  mutations: {
    setIsFirstPage(state, val) {
      state.isFirstPage = val
    },
    setHomeBannerList(state, val) {
      state.homeBannerList = val
    },
    setInfor(state, val) {
      state.infor = val
    },
    setOutLink(state, val) {
      state.outLink = val
    }

  },
  actions: {
    ...api
  },
  modules: {
    home
  }
});
export default store;
